#ifndef BOARD_GUI_H
#define BOARD_GUI_H

#include <QWidget>
#include <QPainter>
#include <QDebug>
#include <QResizeEvent>
#include <QPaintEvent>
#include "board.h"

class board_gui : public QWidget
{
    Q_OBJECT
public:
    explicit board_gui(QWidget *parent = 0);
    void setUserColor();
    QRect returnRect(int i, int j);
    double size;

protected:
    void paintEvent(QPaintEvent *event);
    void mousePressEvent(QMouseEvent *event);

private:
    BOARD board;
};

#endif // BOARD_GUI_H
